package com.food.user.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("修改地址参数对象")
public class UpdateUserAddressForm {
    @NotNull
    @ApiModelProperty("地址id")
    private Long addressId;
    @NotNull
    @ApiModelProperty("地址信息")
    private String addressInfo;

    @NotNull
    @ApiModelProperty("收货姓名")
    private String receiverName;

    @NotNull
    @ApiModelProperty("收货电话")
    @Pattern(regexp = "^((13[0-9])|(14[0-9])|(15[0-9])|(17[0-9])|(18[0-9]))\\d{8}$")
    private String receiverPhone;
}
